Describing a document as being well-formed means that it conforms to basic rules of XML as set forth in the W3C XML 1.0 specification.
XML documents can be very simple, with nested markup created by the author and no Document Type Definition (DTD):
<?xml version="1.0" standalone="yes"?><conversation> <greeting>Hello, world!</greeting> <response>Stop the planet, I want to get off!</response></conversation>
A valid XML document is well-formed and has also been validated against a DTD or other XML schema. This means that an XML parser has determined that the document conforms to the rules of the schema associated with the document.
Copyright 2000 Extensibility, Inc.
Suite 250, 200 Franklin Street, Chapel Hill, North Carolina 27516